package dht.message;

import java.io.Serializable;
import java.net.InetAddress;

import dht.data.TabBigInteger;

public class AckMessage extends Message implements Serializable{

	private static final long serialVersionUID = 533050309190273174L;

	public AckMessage(InetAddress adresseIpClient, String virtualId,
			          TabBigInteger destination) {
		super(adresseIpClient, virtualId, destination);
		super.TYPE_MSG=Message.ACK_Message;
	}
	
	public AckMessage AckReply(InetAddress adresseIpClient, String virtualId, TabBigInteger destination) {
			AckMessage ack=new AckMessage(adresseIpClient, virtualId, destination);
			ack.TYPE_MSG=Message.REPLY_Message;
			return ack;
	}
}
